<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
pageContext.setAttribute("ctx",basePath);
pageContext.setAttribute("ctxTitle","页面顶部");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    <base href="${ctx}">
    
    <title>${ctxTitle }</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="css/layout.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
  <div id="header">
    <!--logo-->
    <div id="logo"><img src="images/logo.gif" width="181" height="45" alt="企业logo" /></div>
    <!--search-->
    <div id="search">
    	<form id="form1" name="form1" method="post" action="">
        搜索产品:
        <input class="inp_srh" type="text" name="textfield" id="textfield" />
        <input class="btn_srh" type="submit" name="button" id="button" value="查询" />
      </form>
    </div>
</div>
<!--menu-->
<div id="nav">
	<div id="nav_l"></div>
    <div id="nav_r"></div>
     <div class="nav_main">
      <ul>
        <li><a href="#"><span>首页</span></a></li>
        <li><a href="#" id="nav_current"><span>企业新闻</span></a></li>
        <li><a href="#"><span>企业简介</span></a></li>
        <li><a href="#"><span>产品展厅</span></a></li>
        <li><a href="#"><span>企业历史</span></a></li>
        <li><a href="#"><span>招商加盟</span></a></li>
        <li><a href="#"><span>网上下单</span></a></li>
        <li><a href="#"><span>联系我们</span></a></li>
      </ul>
    </div>
	   <div class="nav_son">
    	<ul>
        <li><a href="#">企业动态</a></li>
        <li><a href="#">领导活动</a></li>
        <li><a href="#">产品资讯</a></li>
        <li><a href="#">通知公告</a></li>
      </ul>
     <c:choose>
     <c:when test="${sessionScope.name!=null}">
      <div style="float:right;line-height: 28px">欢迎<font color=red><c:out value="${sessionScope.name}"/></font>用户登陆&nbsp;&nbsp;<a href="user_logout.do">注销</a>&nbsp;</div>
     </c:when>
     <c:otherwise>
      <div style="float:right;line-height: 28px"><a href="login.jsp">登陆</a>&nbsp;&nbsp;<a href="register.jsp">注册</a></div>
      </c:otherwise>
      </c:choose>
    </div>
</div>
  </body>
</html>
